import React from "react";
import { BrowserRouter, Route, Switch } from "react-router-dom";
import { ConfigProvider } from "antd";
import zhCN from "antd/es/locale-provider/zh_CN";
import Demo from "./demo";
import "./App.css";

function App() {
  return (
    <ConfigProvider locale={zhCN}>
      <BrowserRouter>
        <Switch>
          <Route component={Demo} path="/demo" />
          <Route component={Demo} path="*" />
        </Switch>
      </BrowserRouter>
    </ConfigProvider>
  );
}

export default App;
